<div class="row">
    <div class="col-sm-12">

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">{$title|default="主页面"}</h3>
            </div>
            <div class="panel-body">
                <form method="post" action="__URL__/add?id={$id}" role="form" id="CourseEdit" class="validate">
                    <div class="form-group">
                        <div class="row">
                            <div class="col-md-6">
                                <label for="LoginName" class="control-label">用户名：</label>
                                <input type="text" id="LoginName" name="LoginName" class="form-control"
                                       data-validate="required" placeholder="请输入用户名" data-message-required="请输入用户名"
                                       value="{$data.loginname}">
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="RealName" class="control-label">真实姓名：</label>
                                    <input type="text" id="RealName" name="RealName" class="form-control"
                                           data-validate="required" placeholder="请输入真实姓名"
                                           data-message-required="请输入真实姓名"
                                           value="{$data.realname}">
                                </div>
                            </div>
                        </div>
                    </div>
                    <if condition="$data.id eq 0">
                        <div class="form-group">
                            <div class="row">
                                <div class="col-md-6">
                                    <label for="Pwd" class="control-label">密码：</label>
                                    <input id="Pwd" name="Pwd" class="form-control"
                                           type="password" data-validate="required,password"
                                           placeholder="请输入密码" data-message-required="请输入密码"/>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="ConfirmPwd" class="control-label">确认密码：</label>
                                        <input id="ConfirmPwd" name="ConfirmPwd" class="form-control"
                                               type="password" data-validate="required,password"
                                               placeholder="请输入确认密码" data-message-required="请输入确认密码"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </if>
                    <div class="form-group">
                        <div class="row">
                            <div class="col-md-6">
                                <label for="SystemID" class="control-label">所属系统：</label>
                                <input type="text" id="SystemID" name="SystemID" class="form-control"
                                       data-validate="required" placeholder="请输入用户类型"
                                       data-message-required="请输入用户类型"
                                       value="{$data.systemid}">
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="UserType" class="control-label">用户类型：</label>
                                    <input type="text" id="UserType" name="UserType" class="form-control"
                                           data-validate="required" placeholder="请输入用户类型"
                                           data-message-required="请输入用户类型"
                                           value="{$data.usertype}">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-5 col-sm-7">
                            <input type="hidden" id="ID" name="ID" value="{$id}">
                            <input type="submit" id="btnSave" value="  保 存  " class="btn btn-primary" onclick="Save()"/>
                            <input type="button" value="  返 回  " class="btn btn-info" onclick="history.go(-1)"/>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>

<script>
    $(function () {

    });
</script>
